package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.ReservationDto;
import com.zzyl.entity.CountByTime;
import com.zzyl.entity.Reservation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CustomerReservationMapper {

    Integer select(Long id, LocalDateTime star,LocalDateTime end);

    Page<Reservation> selectByPage(Integer status,Long id);

    void insert(Reservation reservation);

    void updateStatus(Long id);

    List<CountByTime> selectCountByTime(LocalDateTime begin,LocalDateTime end);

    void updateAllStatus(LocalDateTime time);

}
